package com.huoyun.user.dao;

import java.util.List;

import com.huoyun.base.dao.BaseDao;
import com.huoyun.user.bean.User;
import com.huoyun.userAdmin.bean.UserDetail;

public interface UserDao extends BaseDao<User> {

	public long saveUser(User user);
	
	public void userRelationGroup(long userId, int[] groupIds);
	
	public User getUserByUsername(String username);
	
	public User getUserById(long userId);
	
	public void changePassword(long userId, String newPassword);
	
	public void updateAvatarByUserId(long userId, String avatarUrl);
	
	public void updateMobilePhoneByUserId(long userId, String mobilePhone);
	
	public void updateEmailByUserId(long userId, String email);
	
	public void updateRealnameByUserId(long userId, String realname);
	
	public void updateBankAccountByUserId(long userId, String bankAccount);

	//以下是安全密码相关服务
	public void changeSecurePassword(long userId, String newSecurePassword);


	public void upateSalt(long userId, String salt);
	
	public void updateCredit(long credit, long id);

}
